package com.szd.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StudentController {
    @RequestMapping("/index")
    @ResponseBody
    public  String StudentController(){
        return "index";
    }

    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("message","hello jsp");
        return "hello";
    }

}
